vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO xhawk18/promise-cpp
    REF ${VERSION}
    SHA512 18e09cf4caffee2864b45e46b4385daf960aa5ec340e680e4d0303803360c910a8618b9e1365a18693f1d89ba50b42ad7f2e2b5f8b26d3883b48f8c1337efbe5
    HEAD_REF master
)

file(GLOB PROMISE_HEADERS "${SOURCE_PATH}/include/*.hpp")
file(INSTALL "${SOURCE_PATH}/include/promise-cpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")

file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
